<admintpl file="header" />
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
  <ul class="nav nav-tabs">
     <li class="active"><a href="{:U('product/index')}">产品列表</a></li>
     <li><a href="{:U('product/add')}">添加产品</a></li>
  </ul>
  
  <form class="well form-search" method="post" action="{:u('Product/index')}">
    <div class="search_type cc mb10">
      <div class="mb10"> 
        <span class="mr20">分类：
        <select name="brand" class="normal_select">{$brandlist}</select>&nbsp; &nbsp;关键字：
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{$keyword}" placeholder="请输入关键字...">
        <input type="submit" class="btn" value="搜索"/>
        </span>
      </div>
    </div>
  </form>
  
  <form class="form-horizontal J_ajaxForm" action="" method="post">
    <div class="table_list">
      <table width="100%" class="table table-hover">
        <thead>
	          <tr>
	            <th width="50">ID</th>
                <th width="100">品牌</th>
	            <th width="280">名称</th>	            
                <th>报价</th>
	            <th>操作</th>
	          </tr>
        </thead>
        	<foreach name="products" item="vo">
	        	<tr>
		            <td width="20">{$vo.id}</td>
                    <td>{:sp_brands($vo[brand])}</td>
                    <td><strong><a href="{:U("/item/$vo[id]")}" target="_blank">{$vo.pname}</a></strong><h6></td>
	            	<td><span class="fa fa-yen"></span> {$vo.price}</td>
		            <td>
		            	<a class="btn btn-info" href="{:U('product/edit',array('pid'=>$vo['id']))}">修改</a>
		            	<a class="btn btn-info" href="{:U('product/attribute',array('pid'=>$vo['id']))}" class="J_ajax_del" >估价</a>
					</td>
	          	</tr>
          </foreach>
          </table>
      <div class="pagination">{$Page}</div>
     
    </div>
  	</form>
</div>
<script src="__ROOT__/statics/js/common.js?"></script>
</body>
</html>